<?php print render($page['header']); 
global $base_url;
?>
<span class="smalllines">&nbsp;</span>
<!-- Wrapper -->
<div id="wrapper_sec">
	<!-- Top Section -->
    <div class="top_sec">
    	<!-- Top Section Left Links -->
        <div class="toplinks"><?php print govideo_user_menu_top($logged_in, $front_page) ?></div>
        <!-- Top Section right Links -->
        <div class="links_icons">
        	<ul>
            	<?php //<li><a href="#" class="browse">Browse</a></li> ?>
              <li class="last"><a href="<?php print url('node/add/video') ?>" class="upload"><?php print t('Upload') ?></a></li>
              <?php //<li class="last lang">Language: <a href="#"><img src="images/flag1.gif" alt="" /></a></li> ?>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <!-- Header -->
    <div id="masthead">
    	<!-- Logo -->
        <div class="logo">
        	<a href="<?php print check_url($front_page); ?>" title="<?php print $site_name; ?>"><img src="<?php print $logo; ?>" alt="<?php print $site_name; ?>" /></a>
        </div>
        <!-- Navigation -->
        <div class="navigation">
        	<div id="smoothmenu1" class="ddsmoothmenu">
            <?php print render(menu_tree_output(menu_tree_page_data('main-menu'))); ?>
            <div class="clear"></div>
          </div>
        </div>
        <!-- Search -->
        <div class="search">
        <form action="<?php print url("search/node") ?>" id="SearchForm" method="post">
        	<input type="text" value="<?php print t('Enter keyword to search'); ?>" id="searchBox" name="keys" onblur="if(this.value == '') { this.value = '<?php print t('Enter keyword to search'); ?>'; }" onfocus="if(this.value == '<?php print t('Enter keyword to search'); ?>') { this.value = ''; }" class="bar" />
          <div class="m4"><input type="submit" name="op" id="SearchSubmit" class="go" value="<?php print t("Search") ?>" /></div>
          <input type="hidden" name="form_token" id="edit-search-block-form-form-token" value="<?php print drupal_get_token("search_form") ?>"  />
					<input type="hidden" name="form_id" id="edit-search-block-form" value="search_form"  />
        </form>
        </div>
    </div>
    <div class="clear"></div>
    <!-- Content Section -->
    <div id="content_sec">
    	<!-- Bread Crumb -->
        <div id="crumb"><?php print $breadcrumb; ?></div>
    	<!-- Column 1 -->
      <?php if (isset($messages)) { print $messages; } ?>
        <div class="col1">
            <div class="blog">
              <?php if($tabs) { print render($tabs); } ?>
            	<h2 class="heading"><?php print $title; ?></h2>
              <?php if(arg(0) == 'blog' ) { ?>
              <ul class="bloglisting">
              <?php } elseif(arg(0) == 'search') { ?>
              <div class="contetnp">
              <?php } elseif((arg(0) == 'node' and arg(1) == 'add') or (arg(0) == 'node' and arg(2) == 'edit')) { ?>
              <div class="contetne">
              <?php } else { ?>
              <div class="getintouch">
              <?php } ?>
              
                <?php print render($page['content']); ?>
              <?php if(arg(0) == 'blog' ) { ?>
              </ul>
              <?php } else { ?>
                <div class="clear"></div>
              </div>
              <?php } ?>
            <div class="clear"></div>
            </div>
        </div>
        <!-- Column 2 -->
        <div class="col2">
            <div class="categories">
            <?php if (isset($page['sidebar_right_top'])) { print render($page['sidebar_right_top']); } ?>
            </div>
            <div class="clear"></div>
            <?php if (isset($page['sidebar_right_tab'])) { render($page['sidebar_right_tab']); print govideo_set_tabs(false, false, false, true); } ?>
            <div class="clear"></div>
            <?php if (isset($page['sidebar_right_bottom'])) { ?><?php echo render($page['sidebar_right_bottom']); ?><?php } ?>
            <div class="clear"></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<!-- Footer -->
<div id="footer">
	<div class="inner">
    	<!-- Top button Section -->
        <div class="topbutonsec"><a href="#toppage"><?php print t('Top'); ?></a></div>
        <div class="clear"></div>
        <!-- Footer - Search - Share -->
        <div class="foot_search_share">
        	<!-- Footer - search -->
        	<div class="foot_search">
            <form action="<?php print url("search/node") ?>" id="SearchForm" method="post">
        	    <input type="text" value="<?php print t('Enter keyword to search'); ?>" id="searchBox" name="keys" onblur="if(this.value == '') { this.value = '<?php print t('Enter keyword to search'); ?>'; }" onfocus="if(this.value == '<?php print t('Enter keyword to search'); ?>') { this.value = ''; }" class="bar" />
              <div class="m4"><input type="submit" name="op" id="SearchSubmit" class="buttonone" value="<?php print t("Search") ?>" /></div>
              <input type="hidden" name="form_token" id="edit-search-block-form-form-token" value="<?php print drupal_get_token("search_form") ?>"  />
					    <input type="hidden" name="form_id" id="edit-search-block-form" value="search_form"  />
            </form>
            </div>
            <?php /* ?>
            <!-- Footer -share -->
            <div class="share">
            	<a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/facebook.png" alt="" /></a>
                <a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/twitter.png" alt="" /></a>
                <a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/rss.png" alt="" /></a>
                <a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/youtube.png" alt="" /></a>
                <a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/linkdin.png" alt="" /></a>
                <a href="#"><img src="<?php print $base_url.'/'.drupal_get_path('theme', 'govideo') ?>/images/del.png" alt="" /></a>
            </div>
            <?php */ ?>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
        <!-- Footer content -->
        <div class="footer_cont">
        	<!-- Footer sec1 -->
            <div class="footer_sec1">
            	<!-- Footer logo -->
                <div class="foot_logo">
                	<a href="<?php print check_url($front_page); ?>" title="<?php print $site_name; ?>"><img src="<?php print $logo; ?>" alt="<?php print $site_name; ?>" /></a>
                  <h6><?php print t('Premium Video Theme for Drupal'); ?></h6>
                </div>
                <!-- Footer - our network -->
                <div class="ournetwork">
                	<h3><?php print t('Our Network'); ?></h3>
                    <ul>
                    	<li><a href="<?php print theme_get_setting('tm_ac_youtube'); ?>" class="youtube"><?php print t('www.YouTube.com'); ?></a></li>
                      <li><a href="<?php print theme_get_setting('tm_ac_flickr'); ?>" class="flickr"><?php print t('www.Flickr.com'); ?></a></li>
                      <li><a href="<?php print theme_get_setting('tm_ac_facebook'); ?>" class="facebook"><?php print t('www.facebook.com'); ?></a></li>
                    </ul>
                </div>
                <!-- Footer - rules policies -->
                <div class="rulespolices"><?php if (isset($page['footer_rulespolices'])) { echo render($page['footer_rulespolices']); } ?></div>
            </div>
            <!-- Footer sec2 -->
            <div class="footer_sec2">
            	<!-- Footer - about us -->
                <div class="aboutus"><?php if (isset($page['footer_aboutus'])) { echo render($page['footer_aboutus']); } ?></div>
                <!-- Footer - information -->
                <div class="inforamtion"><?php if (isset($page['footer_inforamtion'])) { echo render($page['footer_inforamtion']); } ?></div>
            </div>
            <!-- Footer sec3 -->
            <div class="footer_sec3">
            	<!-- Footer - recomended -->
                <div class="recomended">
                  <?php if (isset($page['footer_recomended'])) { echo render($page['footer_recomended']); } ?>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div id="copyrights">
	<div class="inner">
    <?php if (isset($page['footer_copyright'])) { print render($page['footer_copyright']); } ?>
    <div class="designdby"><p>Designed by <a href="http://www.themesnap.com">ThemeSnap.com</a></p></div>
  </div>
</div>


<?php //print '<pre>'. check_plain(print_r($page, 1)) .'</pre>'; ?>
<?php ///usr/bin/ffmpeg ?>